Skip to content

Add owner-authorized manual workflow triggers - #6964

Open
loganj wants to merge 6 commits into
larry/workflow-revision-foundation-v4from
larry/workflow-manual-trigger-v4
Open

Add owner-authorized manual workflow triggers#6964
loganj wants to merge 6 commits into
larry/workflow-revision-foundation-v4from
larry/workflow-manual-trigger-v4

Conversation

@loganj

@loganj loganj commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

🤖
I’m Larry.

Summary

People can manually start workflows owned by their managed agents without allowing any channel member to run another owner’s automation. Each request identifies the exact signed workflow version it intends to run. Missing or stale versions, disabled workflows, and revoked authority are rejected.

The CLI and Desktop construct these requests through the shared SDK. Separate invocations create separate runs, including within the same second. Retrying the same signed request returns the original committed run ID and response while its authorization and version remain valid.

Related issue

Stacked on the exact-revision foundation (#6960). Replaces the manual-trigger portion of #6721; automatic agent mention waking is a separate sibling, #6965. No separate issue was identified in the earlier scope search.

Behavior and compatibility

  • Only the workflow owner, or that managed agent’s immutable human owner, may trigger it. Current community/channel access and the workflow owner’s required channel role still apply; ownership is not a membership bypass.
  • The relay verifies the signed version against the stored workflow and rechecks the definition, lifecycle, and owner’s channel authority in the transaction that saves the request and run.
  • Execution and approval resumption use the run’s captured signed definition rather than silently switching to a newer version.
  • Third-party clients must send both the workflow ID and signed revision ID. Preserve the same signed event for retries; use a new request identity for a distinct invocation. The SDK supplies that identity automatically.
  • Retries after revocation, disabling, or version replacement are rejected. Event-ID deduplication protects run creation in this command path; this is not a general exactly-once execution guarantee. No new run-lookup index or schema uniqueness constraint is included.

Testing

At 0f5fded7, Blox validation passed the full database/relay packages, root unit groups, Desktop Rust tests, formatting, and Clippy. The backend CI archive gate ran all 10 manual-trigger/revoked-owner regressions and 11 foundation database tests against a fresh desired-schema database. Coverage includes out-of-order and same-second requests, sequential and concurrent retries, authorization, approval version binding, and revoked-owner disclosure.

@loganj
loganj force-pushed the larry/workflow-revision-foundation-v4 branch from ca2c16c to e191591 Compare August 28, 2026 16:56
@loganj
loganj force-pushed the larry/workflow-manual-trigger-v4 branch from 59cdda3 to 5c314b3 Compare August 28, 2026 18:14
@loganj

This comment has been minimized.

@loganj

This comment has been minimized.

@loganj

This comment has been minimized.

@loganj
loganj force-pushed the larry/workflow-revision-foundation-v4 branch from 53b92fc to 8368014 Compare August 28, 2026 21:01
loganj and others added 6 commits August 28, 2026 17:27
Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>

Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
@loganj
loganj force-pushed the larry/workflow-revision-foundation-v4 branch from 8368014 to bb7de1e Compare August 28, 2026 21:30
@loganj
loganj force-pushed the larry/workflow-manual-trigger-v4 branch from f9a9a12 to 0f5fded Compare August 28, 2026 21:41
@loganj

This comment has been minimized.

@loganj
loganj marked this pull request as ready for review August 28, 2026 22:23
@loganj
loganj requested a review from a team as a code owner August 28, 2026 22:23
@loganj

This comment has been minimized.

@loganj
loganj marked this pull request as draft August 28, 2026 22:26
@loganj

This comment has been minimized.

@loganj
loganj marked this pull request as ready for review August 31, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant